package xkp.lesson.handler;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class Hello3Controller {
    @RequestMapping("/hello.action")
    public ModelAndView sayHello(){
        ModelAndView mv = new ModelAndView();
        mv.setViewName("/success.jsp");
        mv.addObject("message","webcome SpringMVC!!!!!!!");
        return mv;
    }
}
